package com.dongao.model;

import java.util.List;


public class Subject extends BaseModel {
	private static final long serialVersionUID = 1L;

	private Long subjectId;
	private String subjectName;
	private Integer year;
	private List<Course> classes;
	
	public Long getSubjectId() {
		return subjectId;
	}
	
	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}
	
	public String getSubjectName() {
		return subjectName;
	}
	
	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}
	
	public Integer getYear() {
		return year;
	}
	
	public void setYear(Integer year) {
		this.year = year;
	}
	
	public List<Course> getClasses() {
		return classes;
	}
	
	public void setClasses(List<Course> classes) {
		this.classes = classes;
	}
	
	public String getNameAndYear() {
		return getSubjectName() + "(" + getYear() + ")";
	}
}
